# $Id: PKGBUILD 180088 2013-03-16 12:44:19Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>

pkgname=libassuan
pkgver=2.1.0
pkgrel=1
pkgdesc="A IPC library used by some GnuPG related software"
arch=('i686' 'x86_64')
license=('GPL')
url="http://www.gnupg.org/related_software/libassuan"
depends=('libgpg-error')
options=('!libtool')
source=(ftp://ftp.gnupg.org/gcrypt/$pkgname/$pkgname-$pkgver.tar.bz2)
install=libassuan.install
md5sums=('b3231eec8e567f4f9294474a387378f5')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make
}

check() {
  cd ${srcdir}/${pkgname}-${pkgver}
  make check
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  make DESTDIR=${pkgdir} install
}
